package FactoryPattern;

public class ProductFactory extends AbstractProductFactory  {
    @Override
    public Product createProduct(int type) {
  	 Product product;
		switch(type){
	   case 1: product=new Car(); break;
	   default: product=null;
		}
		return product;
    }
}
